package com.a2v2.online.store.database.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="notification_event")
public class NotificationEvent extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2284563852450945281L;
	
	/**
	 * Foreign key to NOTIFICATION_TEMPLATE_DETIAL.ID field
	 */
	@ManyToOne(targetEntity = NotificationTemplateDetail.class)
	@JoinColumn(name = "template_id")
	private NotificationTemplateDetail notificationTemplateDetail;
	
	/**
	 * 
	 */
	@Column(name="pi_code")
	private String piCode;
	
	/**
	 * 
	 */
	@Column(name="pi_name")
	private String piName;
	
	/**
	 * 
	 */
	@Column(name="service_name")
	private String serviceName;
	
	/**
	 * 
	 */
	@Column(name="event")
	private String event;

	public NotificationTemplateDetail getNotificationTemplateDetail() {
		return notificationTemplateDetail;
	}

	public void setNotificationTemplateDetail(
			NotificationTemplateDetail notificationTemplateDetail) {
		this.notificationTemplateDetail = notificationTemplateDetail;
	}

	public String getPiCode() {
		return piCode;
	}

	public void setPiCode(String piCode) {
		this.piCode = piCode;
	}

	public String getPiName() {
		return piName;
	}

	public void setPiName(String piName) {
		this.piName = piName;
	}

	public String getServiceName() {
		return serviceName;
	}

	public void setServiceName(String serviceName) {
		this.serviceName = serviceName;
	}

	public String getEvent() {
		return event;
	}

	public void setEvent(String event) {
		this.event = event;
	}
}
